import isMatch from './isMatch'

/**
 * 返回一个函数
 * @param {*} obj
 */
function matcher(attrs) {
  const copyObj = Object.assign({}, attrs)
  return function (obj) {
    return isMatch(obj, copyObj)
  }
}

export default matcher
